package xin.marcher.module.rights.config;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xin.marcher.module.rights.api.LoginApi;
import xin.marcher.module.rights.support.PermissionSupport;

/**
 *
 */
@Configuration
public class PermissionSupportConfig {

    @DubboReference(version = "1.0.0")
    private LoginApi loginApi;

    @Bean("rights")
    public PermissionSupport permissionSupport() {
        return new PermissionSupport(loginApi);
    }

}
